/*
 * Copyright 2012 Benoît Combe <benoit.combe@gmail.com>.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package fr.ipst.spot.facades.entites;

import fr.ipst.spot.entites.AgentExterieur;
import fr.ipst.spot.exceptions.SpotExceptionEjb;
import fr.ipst.spot.formulaires.entites.FormAgentExterieur;
import fr.ipst.spot.formulaires.entites.FormAgentExterieurId;
import fr.ipst.spot.interfaces.entites.locales.AgentExterieurFacadeLocale;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Benoît Combe <benoit.combe@gmail.com>
 */
@Stateless
public class AgentExterieurFacade extends AbstractFacade<AgentExterieur> implements AgentExterieurFacadeLocale {

    @PersistenceContext(unitName = "SPOT_Application-ejbPU")
    private EntityManager em;

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    /**
     *
     */
    public AgentExterieurFacade() {
        super(AgentExterieur.class);
    }

    /**
     *
     * @param formAgentExterieur
     * @return
     * @throws SpotExceptionEjb
     */
    @Override
    public AgentExterieur create(FormAgentExterieur formAgentExterieur) throws SpotExceptionEjb {
        return super.create(formAgentExterieur);
    }

    /**
     *
     * @param formAgentExterieur
     * @return
     * @throws SpotExceptionEjb
     */
    @Override
    public AgentExterieur edit(FormAgentExterieur formAgentExterieur) throws SpotExceptionEjb {
        return super.edit(formAgentExterieur);
    }

    /**
     *
     * @param formAgentExterieurId
     * @return
     * @throws SpotExceptionEjb
     */
    @Override
    public AgentExterieur find(FormAgentExterieurId formAgentExterieurId) throws SpotExceptionEjb {
        return super.find(formAgentExterieurId);
    }

    /**
     *
     * @param formAgentExterieurId
     * @throws SpotExceptionEjb
     */
    @Override
    public void remove(FormAgentExterieurId formAgentExterieurId) throws SpotExceptionEjb {
        super.remove(formAgentExterieurId);
    }
}
